#ifndef __TouchEvent_h__
#define __TouchEvent_h__
#include "Framework.h"

typedef void (*TouchCustomEventFunc) (VMINT x, VMINT y);
typedef void (*TouchEventHandle)(VMINT tevent, VMINT x, VMINT y);

typedef struct
{
	TouchEventHandle TouchCustomEventHandle;
}mmi_touch_func;

#define CHECK_IS_NOT_AREA(curx, cury, x1, y1, x2, y2) if(curx < x1 || curx > x2 || cury < y1 || cury > y2)

#define CHECK_IS_IN_AREA(curx,cury,x1,y1,x2,y2)	if(curx > x1 && curx < x2 && cury > y1 && cury < y2)

extern void RegisterTouchCustomEventHandle(TouchEventHandle func);

extern void TouchEventInit(void);

extern void CustomTouchEventHandle(VMINT event, VMINT x, VMINT y);

extern void TouchEventDummy(VMINT tevent, VMINT x, VMINT y);

#endif
